import 'package:flutter/cupertino.dart';
import 'package:xindong/routes/tab_moments/controller/xindong_dongtai_vm.dart';
import 'package:xindong/routes/tab_moments/view/xindong_dongtai_list_view.dart';
import 'package:xindong/widgets/container/xindong_getx_builder_container.dart';
import 'package:xindong/widgets/container/xindong_keep_alive_container.dart';

class XinDongDongTaiListContainer extends StatelessWidget {
  final String controllerTag;
  final String emptyTips;
  const XinDongDongTaiListContainer({Key? key, required this.controllerTag, required this.emptyTips}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return XinDongKeepAliveContainer(
      keepAlive: true,
      child: XinDongGetBuilder<XinDongDongTaiVM>(
        tag: controllerTag,
        builder: (viewClass) {
          return XinDongDongTaiListView(viewClass: viewClass, emptyTips: emptyTips);
        },
      ),
    );
  }
}

